﻿using FluentNHibernate.Mapping;
using Thaire.Investment.Domains.Master;

namespace Thaire.Investment.Repository.Mapping
{
    class CreditRatingMap : ClassMap<CreditRating>
    {
        public CreditRatingMap()
        {
            Table("CREDIT_RATING");
            Id(x => x.CreditRatingId, "CREDIT_RATING_ID").GeneratedBy.Identity();
            Map(x => x.CreditRatingInstitute, "CREDIT_RATING_INSTITUTE");
            Map(x => x.CreditRatingValue, "CREDIT_RATING_VALUE");
              Map(x => x.CreditRatingRiskLevel, "CREDIT_RATING_RISK_LEVEL");


        }
    }
}
